package com.audaque.springboot.foshanupload.web.rocketmqdemo.listener;

import org.apache.rocketmq.spring.annotation.MessageModel;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;


@Service
@RocketMQMessageListener(consumerGroup = "broadcasting-string-push", topic = "broadcasting-string", messageModel = MessageModel.BROADCASTING)
public class BroadCastingConsumerListener implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        System.out.println("广播模式 消费者，消费消息：" + s);
    }
}